const Koa = require("koa");
const path = require("path");
const rankStatic = require("./middleware/rankStatic");
const App = new Koa();

const entry = path.resolve(__dirname, "./public");
const other = path.resolve(__dirname, "../images");
rankStatic(App, {
  entry: [
    { path: entry },
    { path: other, base: "/other" },
  ],
});

App.listen(3000, () => {
  console.log("======>started!!");
});
